﻿<UserControl
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:local="clr-namespace:ShuffleBoard" x:Class="ShuffleBoard.MainPage"
    mc:Ignorable="d"
    Width="480" Height="800">

    <UserControl.Resources>
        <Storyboard x:Name="sbScaleOut">
    		<DoubleAnimation Duration="0:0:1" To="0.8" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)" Storyboard.TargetName="LayoutRoot" d:IsOptimized="True">
    			<DoubleAnimation.EasingFunction>
    				<PowerEase EasingMode="EaseIn"/>
    			</DoubleAnimation.EasingFunction>
    		</DoubleAnimation>
    		<DoubleAnimation Duration="0:0:1" To="0.8" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleY)" Storyboard.TargetName="LayoutRoot" d:IsOptimized="True">
    			<DoubleAnimation.EasingFunction>
    				<PowerEase EasingMode="EaseIn"/>
    			</DoubleAnimation.EasingFunction>
    		</DoubleAnimation>
    		<DoubleAnimation Duration="0:0:1" To="0" Storyboard.TargetProperty="(UIElement.Projection).(PlaneProjection.RotationY)" Storyboard.TargetName="LayoutRoot" d:IsOptimized="True"/>
    		<PointAnimation Duration="0:0:1" To="0.5,0.5" Storyboard.TargetProperty="(UIElement.RenderTransformOrigin)" Storyboard.TargetName="LayoutRoot" d:IsOptimized="True"/>
    		<DoubleAnimation Duration="0:0:1" To="200" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)" Storyboard.TargetName="LayoutRoot" d:IsOptimized="True"/>
    		<DoubleAnimation Duration="0:0:1" To="50" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.Y)" Storyboard.TargetName="LayoutRoot" d:IsOptimized="True"/>
    	</Storyboard>
    </UserControl.Resources>

    <Canvas x:Name="LayoutRoot" Background="Black" RenderTransformOrigin="0.5,0.5" Width="480" Height="800"  >
       
        <Canvas.RenderTransform>
            <TransformGroup>
                <ScaleTransform/>
                <SkewTransform/>
                <RotateTransform/>
                <TranslateTransform/>
            </TransformGroup>
        </Canvas.RenderTransform>

        <Canvas.Projection>
            <PlaneProjection x:Name="projectAccelerometer" RotationX="0" RotationY="0"/>
        </Canvas.Projection>
        <Image Height="553" Canvas.Left="-294.75" Source="/phoneSkin.png" Stretch="Fill" Canvas.Top="183.75" Width="1070.5" RenderTransformOrigin="0.5,0.5" UseLayoutRounding="False" d:LayoutRounding="Auto">
            <Image.RenderTransform>
                <TransformGroup>
                    <ScaleTransform/>
                    <SkewTransform/>
                    <RotateTransform Angle="90"/>
                    <TranslateTransform/>
                </TransformGroup>
            </Image.RenderTransform>
        </Image>
        <Canvas Width="480" Height="800">
            <Canvas.Clip>
                <RectangleGeometry Rect="0,0,480,800"/>
            </Canvas.Clip>
            <local:ucMainGame x:Name="ucMainGame1" Height="800" Width="480" />
        </Canvas>
    </Canvas>
</UserControl>

